lusolve
lusolve(A: any[] | Mat, b: any[] | Mat) : any[]
param A
- The 'A' part of Ax=b
. A 2-D matrix. See lsolve
or usolve
for variants.
param b
- The 'b' part of Ax=b
. A 1d-D matrix, must be a column vector specifically. [[1], [2], [3]]
for example.
returns: any[]
- The column vector representing the solution to the equation Ax=b
, or the part, x
.
This function finds the answer to the equation Ax=b
, or the linear equation system where x
is a column vector of the different variables. Can be less efficient than lsolve()
or usolve()
but works for non-triangular matrices.